<template>
  <div>
    <div class="colorBox" :style="{ backgroundColor: 'rgb'+`(${r},${g},${b})` }"></div>
    <div>
      R:<input type="range" max="250" v-model="r" /> G:<input
        type="range"
        max="250"
        v-model="g"
      />
      B:<input type="range" max="250" v-model="b" />
    </div>
  </div>
</template>
<script>
export default {
  data () {
    return {
      r: 123,
      g: 122,
      b: 122
    }
  }
}
</script>
<style scoped>
.colorBox {
  width: 200px;
  height: 200px;
  border: 1px solid #ccc;
}
</style>